package server;


import com.why.rpc.User;
import com.why.rpc.UserDao;
import com.why.rpc.core.server.annotation.RpcService;


import java.util.UUID;

/**
 * @program: why-simpleboot-framework
 * @description:
 * @author: @why
 * @create: 2021-06-15 17:56
 **/
@RpcService
public class UserDaoImpl implements UserDao {
    @Override
    public User getUserId(User user) {
        user.setId(UUID.randomUUID().toString());
        return user;
    }
}
